FROM python:3.9
WORKDIR /survey_template
RUN apt-get update
RUN apt-get install -y vim
COPY requirements.txt ./
RUN pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple

COPY . .

EXPOSE 5001
 CMD ["gunicorn", "manager:app", "-c", "gun.conf.py"]
